package com.example.academic_affairs_system.model.dto.classCourses;

import com.example.academic_affairs_system.model.bo.TimetableBO;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 课程表数据
 *
 * @author hjx
 * @since 2023/02/04 5:07 PM
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "课程表", description = "周一至周日的安排")
public class TimeTableDTO {
  Long classId;
  String className;
  List<TimeTableCoursesDTO> monday;
  List<TimeTableCoursesDTO> tuesday;
  List<TimeTableCoursesDTO> wednesday;
  List<TimeTableCoursesDTO> thursday;
  List<TimeTableCoursesDTO> friday;
  List<TimeTableCoursesDTO> saturday;
  List<TimeTableCoursesDTO> sunday;

  public TimetableBO buildBO() {
    return TimetableBO.builder()
        .monday(monday)
        .tuesday(tuesday)
        .wednesday(wednesday)
        .thursday(thursday)
        .friday(friday)
        .saturday(saturday)
        .sunday(sunday)
        .build();
  }

  public static void main(String[] args) {}
}
